Repository navigation
fix: elements at fractional positions drawing on the wrong cells - #168
Merged
Merged
Conversation
Contributor
Changeset presentThis PR has an acceptable changeset. |
commit: |
|
Size Reduced — -0.1 KB 141.1 KB unpacked |
natemoo-re
force-pushed
the
fix/fractional-cell-coverage
branch
from
December 3, 2026 04:37
307b7d0 to
5a9e8f0
Compare
Merged
natemoo-re
added a commit
that referenced
this pull request
Dec 4, 2026
Main landed void update() (#166), element replay (#171), the retained frame pair (#169), cell coverage (#168), color encoding tiers (#148, #157, #158), synchronized output (#139), and pointer shape (#137). - update() can no longer return cleanup bytes, so resize and kitty-graphics denial enqueue wire image ids in a new fixed-capacity pending-deletion queue (§5.7); the next completed render emits the data-freeing deletions first (§9.2.6 step 0). Overflow collapses to one delete-all with transmission resets. - removeImage() returns void and uses the same queue, resolving Open Decision 4: render() is the Term's only output path. - Replay equivalence replaces snapshot equivalence; a replay carries the directive, never a resolution. - Placements tables follow the frame pair's roles; INV-I9 maps onto discarding the current frame. - Layout-box cell quantities are measured on the covered-cell rect (renderer-spec §7.11). - img bg takes the full color value space; ascii art colors encode at the frame's color tier; a color-tier change re-places without re-transmitting. - Graphics bytes sit inside the BSU/ESU pair; a graphics-only frame is not a no-op. §16.9 is dropped. - Probe query renumbered to 10; §4.5 moved to §4.4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
render coordinates used
(int)casts, which truncate toward zero, so anything between y = -1 and 0 drew on row 0 (a panel sliding in from above stacked its rows there). now edges round withceilf(v - 0.5)to the cell whose center they coverthe hit test needed one more piece to agree with that: clay's
Clay__PointIsInsideRectincludes both edges, so when an edge lands exactly on a cell center both elements get the pointer. this happens on plain oddgrow()splits too (two siblings in 41 columns are 20.5 wide).patches/clay-half-open-hit-test.patchmakes the bottom and right edges exclusiveadded renderer-spec §7.11 (cell coverage) and pointed §12.4 at it.
test/coverage.test.tssweeps a panel from y = -3 to 1 and checks the pointer hits exactly the row drawn in every cellheads up: fractional edges past the middle of a cell now round up instead of down, a 3-way split of 40 columns starts the third element at 27 instead of 26. no existing test changed
closes #151
Type of change
Checklist
pnpm test)pnpm format)AI-generated code disclosure